package com.crm.controller.system;

import com.crm.dto.EmpPageResult;
import com.crm.dto.QueryEmpTypeDto;
import com.crm.mapper.system.EmpMapper;
import com.crm.pojo.Dict;
import com.crm.result.ResponseResult;
import com.crm.service.system.EmpService;
import com.crm.vo.TbUserVo;
import com.github.pagehelper.Page;
import io.swagger.models.auth.In;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName EmpController
 * @Description
 * @Author 19632
 * @Date 2024/10/30 10:38
 * @Version
 **/
@RestController
@Slf4j
public class EmpController {

    @Autowired
    private EmpService empService;

@GetMapping("/system/user/list")

    private ResponseResult list(QueryEmpTypeDto dto){
    EmpPageResult page = empService.queryAll(dto);
    return ResponseResult.success().put("rows", page.getTbUserVos())
            .put("total", page.getTotal());
}

}
